package com.jinwei.qunguanjia.user.service;

import com.jinwei.qunguanjia.common.core.domain.model.LoginUser;

import javax.servlet.http.HttpServletRequest;

public interface UserTokenService {

    /**
     * 创建令牌
     *
     * @param loginUser 用户信息
     * @return 令牌
     */
    String createToken(LoginUser loginUser);

    /**
     * 获取请求token
     *
     * @return token
     */
    String getToken(HttpServletRequest request);

    /**
     * 获取请求租户id
     *
     * @return 租户id
     */
    String getTenantId(HttpServletRequest request);

    String getTokenKey(String uuid);

    String getUserNameKey(String userName);
}
